package sz.com.postoffice.jxyzwgcase.dao.master;

import org.apache.ibatis.annotations.Param;
import sz.com.postoffice.jxyzwgcase.dao.BaseDao;
import sz.com.postoffice.jxyzwgcase.pojo.EnterpriseCustomer;
import sz.com.postoffice.jxyzwgcase.pojo.ResourceCustomerRelation;

public interface EnterpriseCustomerDao extends BaseDao<EnterpriseCustomer> {
    void insertRelation(ResourceCustomerRelation relation);
    void updateRelation(ResourceCustomerRelation relation);
    ResourceCustomerRelation findRelationByCustomerCode(@Param("customerCode") String customerCode);
    ResourceCustomerRelation findRelationByResourceCode(@Param("resourceCode") String resourceCode);

}
